#include <iostream>
using namespace std;

class Array
{
public:
    Array(int Len = 0) : Len(Len) { cout << "Array()" << endl; }
    ~Array() { cout << "~Array()" << endl; }
    void setLen(int Len) { this->Len = Len; }
    int getLen() { return Len; }
    void print() {cout << "Len = " << Len << endl;}
private:
    int Len;
};

void stackInstantiation()
{
    Array arr1(5);
    Array arr2;
    arr2.setLen(7);
    arr1.print();
    arr2.print();
}

int main()
{
    stackInstantiation();
    return 0;
}